import 'package:flutter_screenutil/flutter_screenutil.dart';


class ScreenAdapter {
  static init(designSize, builder) {
    // 初始化屏幕适配工具
    return ScreenUtilInit(
      designSize: designSize,
      builder: builder
    );
  }
  
  static height(value) {
    // 设置高度
    return ScreenUtil().setHeight(value);
  }

  static width(value) {
    // 设置宽度 
    return ScreenUtil().setWidth(value);
  }

  static getScreenHeight() {
    // 获取设备高度 dp
    return ScreenUtil().screenHeight;
  }

  static getScreenWidth() {
    // 获取设备宽度 dp
    return ScreenUtil().screenWidth;
  }
}